Using Applescript for formatting rows in Numbers

I have a Numbers spreadsheet where I would like to shade the rows depending on the values (even/odd) in my second (B) column.


I've been all over the forum, but I can't seem to find a script that matches, and I cannot edit one and make it work.


Anyone with a template and a few kind words? :-)

Mac mini (Late 2014), OS X El Capitan (10.11.6)

Posted on Sep 19, 2016 1:58 PM

Reply
4 replies

Sep 20, 2016 6:33 AM in response to jsteinaa

Hi jsteinaa,


Here is a method that does not require Applescript.

Add another column, C. You can hide that column later.

User uploaded file

Formula in C2 (and Fill Down)

=IF(ISEVEN(B2),B2,"")

If a value in B is even, make the cell in C equal to the B cell, else insert "" (NULL).


Conditional highlighting in B

User uploaded file

Alternative: use the ISODD function in C.

Please call back with questions.


Regards,

Ian.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Using Applescript for formatting rows in Numbers

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.